package left42dead;

/**
 * Represents liquid nitrogen weapon that the humans can pick up to kill zombies
 */
public class LiquidNitrogen extends Weapon
{
    /**
     * Create a liquid nitrogen item for single use
     */
    public LiquidNitrogen ()
    {
        super(1);
    }

    /**
     * Use the Liquid Nitrogen on a zombie
     */
    public void use (Character target)
    {
        if (!isOutOfAmmo())
        {
            if (target instanceof Zombie)
            {
                target.setDead();
                ammo--;
            }
        }
    }
}
